<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class My_Controller extends CI_Controller {

	public function __construct()
  	{
    	parent::__construct();
    	//Codeigniter : Write Less Do More
    	if(empty($_SESSION['id'])){
    		header("Location:/index.php/Login");
    	}
  	}

}

/* End of file My_Controller.php */
/* Location: ./application/libraries/My_Controller.php */